package com.it.base.core.system.user.model.from;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class SysUserUpdateFormDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	@NotNull(message = "主键必填")
	@NotBlank(message = "主键必填")
	private String id;

	@ApiModelProperty(name = "deptId", value = "部门id", dataType = "String", required = true)
	@NotBlank(message = "部门id")
	private String deptId;

	/**
	 * 用户名
	 */
	@ApiModelProperty(name = "userName", value = "用户名", dataType = "String", required = true)
	@NotBlank(message = "用户名")
	private String userName;


	/**
	 * 昵称
	 */
	@ApiModelProperty(name = "nickName", value = "昵称", dataType = "String", required = true)
	private String nickName;

	/**
	 * 联系电话
	 */
	@ApiModelProperty(name = "phone", value = "联系电话", dataType = "String")
	private String phone;

	/**
	 * 邮箱
	 */
	@ApiModelProperty(name = "email", value = "邮箱", dataType = "String")
	private String email;


	/**
	 * 性别
	 */
	@ApiModelProperty(name = "sex", value = "性别", dataType = "String")
	private Integer sex;

	/**
	 * 备注
	 */
	@ApiModelProperty(name = "remark", value = "备注", dataType = "String")
	private String remark;

	/**
	 * 状态
	 */
	@ApiModelProperty(name = "status", value = "状态", dataType = "String", required = true)
	@Min(message = "状态值只能为-1或0", value = -1)
	@Max(message = "状态值只能为-1或0", value = 0)
	private Integer status;
}
